package com.belano.domain;

import java.io.Serializable;
import java.util.Date;

public class Spittle implements Serializable {

    private static final long serialVersionUID = 5225178807098153368L;
    
    private Long id;
    private Spitter spitter;
    private String text;
    private Date when;

    public Spittle() {
      this.spitter = new Spitter();  // HARD-CODED FOR NOW
      this.spitter.setId((long)1);
    }
    
    public Long getId() {
      return this.id;
    }
    
    public void setId(Long id) {
      this.id = id;
    }
    
    public String getText() {
      return this.text;
    }
    
    public void setText(String text) {
      this.text = text;
    }
    
    public Date getWhen() {
      return this.when;
    }

    public void setWhen(Date when) {
      this.when = when;
    }

    public Spitter getSpitter() {
      return this.spitter;
    }

    public void setSpitter(Spitter spitter) {
      this.spitter = spitter;
    }
}
